//
//  YCBaseNavigationController.m
//  YCAdapterMode
//
//  Created by 安跃超 on 2018/12/3.
//  Copyright © 2018年 安跃超. All rights reserved.
//

#import "YCBaseNavigationController.h"

@interface YCBaseNavigationController ()

@end

@implementation YCBaseNavigationController

+ (nonnull instancetype)baseViewController:(nonnull UIViewController *)viewController {
    YCBaseNavigationController *navi = [[YCBaseNavigationController alloc] initWithRootViewController:viewController];
    navi.navigationBar.titleTextAttributes = @{NSForegroundColorAttributeName: YCHexColor(@"#333333"), NSFontAttributeName: [UIFont systemFontOfSize:18]};
    //    navi.navigationBar.barTintColor = HLHexColor(@"f9f9f9");
    navi.navigationBar.barTintColor = [UIColor whiteColor];
    navi.navigationItem.title = viewController.title;
    return navi;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
